package com.abing.chatRoom.service;

import com.abing.chatRoom.model.domain.Friend;
import com.abing.chatRoom.model.VO.UserVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abing.chatRoom.model.domain.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author abing
* @description 针对表【friend(好友表)】的数据库操作Service
* @createDate 2024-08-06 18:54:43
*/
public interface FriendService extends IService<Friend> {


    List<UserVO> friendList(User loginUser);

    void friendAdd(long id, HttpServletRequest request);

    boolean isFriend(Long id, Long userId);

    void friendDelete(Long id, HttpServletRequest request);

}
